package com.jhgsys.internal.formDesign.service;

import com.jhgsys.internal.formDesign.entity.FormPublishObject;
import com.jhgsys.internal.common.entity.QueryRequest;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 表单发布对象 Service接口
 *
 * @author zhangwei
 * @date 2024-09-03 10:58:07
 */
public interface IFormPublishObjectService extends IService<FormPublishObject> {
    /**
     * 查询（分页）
     * @author zhangwei
     * @date 2024-09-03 10:58:07
     * @param request QueryRequest
     * @param formPublishObject formPublishObject
     * @return IPage<FormPublishObject>
     */
    IPage<FormPublishObject> findFormPublishObjectPage(QueryRequest request, FormPublishObject formPublishObject);

    /**
     * 查询（所有）
     * @author zhangwei
     * @date 2024-09-03 10:58:07
     * @param formPublishObject formPublishObject
     * @return List<FormPublishObject>
     */
    List<FormPublishObject> findFormPublishObjectList(FormPublishObject formPublishObject);

    /**
    * 根据ID查询
    * @author zhangwei
    * @date 2024-09-03 10:58:07
    * @param id
    * @return FormPublishObject
    */
    FormPublishObject findFormPublishObjectById(String id);

    /**
     * 新增
     * @author zhangwei
     * @date 2024-09-03 10:58:07
     * @param formPublishObject formPublishObject
     */
    void createFormPublishObject(FormPublishObject formPublishObject);

    /**
     * 修改
     * @author zhangwei
     * @date 2024-09-03 10:58:07
     * @param formPublishObject formPublishObject
     */
    void updateFormPublishObject(FormPublishObject formPublishObject);

    /**
     * 逻辑删除
     * @author zhangwei
     * @date 2024-09-03 10:58:07
     * @param formPublishObject formPublishObject
     * @param formPublishObjectIds formPublishObjectIds
     */
    void deleteFormPublishObject(FormPublishObject formPublishObject,String formPublishObjectIds);

    List<FormPublishObject> selectByDesignId(String id);
    /**
    * 物理删除
    * @author zhangwei
    * @date 2024-09-03 10:58:07
    * @param formPublishObjectIds formPublishObjectIds
    */
    void physicallyDeleteFormPublishObject(String formPublishObjectIds);
}
